package com.dc.chat.entity.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

@Data
public class User {
    @TableId(type=IdType.AUTO)
    private Integer id;

    public Integer getId() {
        return id;
    }

    private String userName;
    private String password;
    private String nickName;
    private String avatar;
    private Integer status;
    @TableLogic
    private Integer deleted;
    @TableField(exist = false)
    private boolean online;

}
